package com.yifeng.repo.micro.service.server.mps;

import feign.Param;
import feign.RequestLine;
import next.fire.mps.api.GroupChatService;
import next.fire.mps.api.model.GroupChat;
import org.springframework.cloud.openfeign.FeignClient;

import java.util.List;

@FeignClient(name = "mpsGroupChatServiceClient", url = "${yfcloud.micro.service.mps.url}", path = "/fire-mps")
public interface GroupChatServiceClient extends GroupChatService {

    @Override
    @RequestLine("POST /GroupChatService/get")
    GroupChat get(@Param("merchantId") String merchantId, @Param("mpAppId") String mpAppId, @Param("id") String id);

    @Override
    @RequestLine("POST /GroupChatService/list")
    List<GroupChat> list(@Param("merchantId") String merchantId, @Param("mpAppId") String mpAppId, @Param("openIds") List<String> openIds,
                         @Param("pageSize") String offset, int pageSize);
}
